package com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.web.context.support.StandardServletEnvironment;

@SpringBootApplication//(exclude= {DataSourceAutoConfiguration.class})
//@ComponentScan(basePackages = {"com.dao"})
@MapperScan("com.dao")
public class MQApplication 
{
	@Autowired
	public void setEnvironment(Environment environment) 
	{
		String host = environment.getProperty("spring.redis.host");
		System.out.println(host);
	}
	
	public static void main(String[] args)
	{
		SpringApplication.run(MQApplication.class, args);
	}
}
